import axios from '../utils/request'

function getRank() {
    return axios.get('/rank')
}

function getNews(query) {
    // ?id=1&name="kkk"
    return axios.get('/news',{params: query})
}

function getVedio(query) {
    return axios.get('/vedio', {params:query})
}

function getSchedule() {
    return axios.get('/schedule')
}

export default {
    getRank,
    getNews,
    getVedio,
    getSchedule
}